/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kelaite.procurement.utils;

import java.io.IOException;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author adminitrator
 */
public class SMSSender {

    private final static String API_KEY = "559dd23da0b256ee9969198a4f19e013";

    public boolean sendMsg(String mobile, String code) {
        String text = "【云片网】您的验证码是" + code;
        boolean ret = false;
        try {
            String retString = JavaSmsApi.sendSms(API_KEY, text, mobile);
            Map<String, String> map = JsonUtil.parseJsonToMap(retString);
            
        } catch (IOException ex) {
            Logger.getLogger(SMSSender.class.getName()).log(Level.SEVERE, null, ex);
        }
        return ret;
    }
}
